package ch03.Jianda.service;

import ch03.Jianda.dao.Action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ActionService {
    private Action dao;

    public void setDao(Action dao) {
        this.dao = dao;
    }

    public void login(HttpServletRequest request, HttpServletResponse response) throws Exception {
        dao.execute(request,response);
    }

    public void quit(HttpServletRequest request,HttpServletResponse response) throws Exception {
        dao.execute(request,response);
    }
}
